export const commonResult = function(code, msg, data ){
    return {
        code : code || 0 ,
        msg  ,
        data ,
        serverTime : +new Date()
    }
}

export const commonPageResult = function(code, msg, result  ){
    const { data, pageNum ,pageSize ,lastValue ,hasMore } = result
    return {
        code : code || 0 ,
        msg  ,
        data, pageNum ,pageSize ,lastValue ,hasMore ,
        serverTime : +new Date()
    }
}